"use strict";
var apps = getApp();
Page({
    data: {
        userInfo: {},
        hasUserInfo: false,
        gstoreQrcodeImg: '../../images/gimages/gstore_qrcode_img.png',
        gtablist: [
            {
                icon: 'icon-daifukuan',
                title: '待付款',
                skipurl: ''
            },
            {
                icon: 'icon-daifahuo',
                title: '待发货',
                skipurl: ''
            },
            {
                icon: 'icon-icon-test',
                title: '待收货',
                skipurl: ''
            },
            {
                icon: 'icon-pingjia',
                title: '待评价',
                skipurl: ''
            },
            {
                icon: 'icon-tubiaolunkuo-',
                title: '售后订单',
                skipurl: '/pages/orderaftersales/orderaftersales'
            }
        ],
        gnavlist: [
            {
                icon: 'chengweituanchang',
                title: '申请团长',
                skipurl: '../apply/apply'
            },
            {
                icon: 'hongbao',
                title: '申请团长',
                skipurl: '../apply/apply'
            },
            {
                icon: 'hongbao',
                title: '优惠卷',
                skipurl: 'pages/gdiscounts/gdiscounts'
            },
            {
                icon: 'gouwuche',
                title: '购物车',
                skipurl: 'pages/shoppingCart/shoppingCart'
            },
            {
                icon: 'erweima2',
                title: '到店付',
                skipurl: ''
            },
            {
                icon: 'liaotian',
                title: '联系客服',
                skipurl: ''
            },
            {
                icon: 'meiriqiandao',
                title: '签到',
                skipurl: ''
            }
        ]
    },
    address: function (e) {
        console.log(1);
        wx.navigateTo({
            url: '/pages/myaddress/myaddress'
        });
    },
    onLoad: function () {
    },
    go: function () {
        console.log('11111');
        wx.navigateTo({
            url: '/pages/gpersonaldetails/gpersonaldetails'
        });
    },
    goBalance: function () {
        wx.navigateTo({
            url: "../balance/balance"
        });
    },
    goWelfare: function () {
        wx.navigateTo({
            url: "../welfare/welfare"
        });
    },
    order: function () {
        wx.navigateTo({
            url: '../orderCenter/orderCenter'
        });
        console.log('我的订单');
    },
    onReady: function () {
        this.setData({
            userInfo: apps.globalData.userInfo
        });
    },
    onShow: function () {
    },
    onHide: function () {
    },
    onUnload: function () {
    },
    onPullDownRefresh: function () {
    },
    onReachBottom: function () {
    },
    onShareAppMessage: function () {
    }
});
